package com.learn.hibernatevalidator.chapter03.crossparameter;

import jakarta.validation.ConstraintTarget;

import java.util.List;

/**
 * @author: liyf
 * @create: 2024-12-24 21:29
 **/
public class Car {

    @LuggageCountMatchesPassengerCount(piecesOfLuggagePerPassenger = 2, validationAppliesTo = ConstraintTarget.PARAMETERS)
    public void load(List<Person> persons, List<PieceOfLuggage> luggage) {
        System.out.println("Car.load");
    }
}
